package com.luo.mapper;

import com.luo.pojo.Book;
import com.luo.pojo.BookCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author shang
* @description 针对表【book_category】的数据库操作Mapper
* @createDate 2025-05-27 11:36:45
* @Entity com.luo.pojo.BookCategory
*/
@Mapper
public interface BookCategoryMapper {

    int deleteByPrimaryKey(Long id);

    int insert(BookCategory record);

    int insertSelective(BookCategory record);

    BookCategory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BookCategory record);

    int updateByPrimaryKey(BookCategory record);

    List<Book> selectBooksByCategoryId(Long categoryId);
}
